home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / BOOPSI / GI1 / Include / gadgets / calendar.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-27  |  2.4 KB  |  89 lines

  1. #ifndef    GADGETS_CALENDAR_H
  2. #define    GADGETS_CALENDAR_H
  3.  
  4. /*
  5. **    $VER: calendar.h 42.3 (14.2.94)
  6. **    Includes Release 42.1
  7. **
  8. **    Definitions for the calendar BOOPSI gadget class
  9. **
  10. **    (C) Copyright 1994-1999 Amiga, Inc.
  11. **    All Rights Reserved
  12. */
  13.  
  14. /*****************************************************************************/
  15.  
  16. #ifndef EXEC_TYPES_H
  17. #include <exec/types.h>
  18. #endif
  19.  
  20. #ifndef UTILITY_DATE_H
  21. #include <utility/date.h>
  22. #endif
  23.  
  24. #ifndef UTILITY_TAGITEM_H
  25. #include <utility/tagitem.h>
  26. #endif
  27.  
  28. #ifndef INTUITION_GADGETCLASS_H
  29. #include <intuition/gadgetclass.h>
  30. #endif
  31.  
  32. /*****************************************************************************/
  33.  
  34. #define    DL_TEXTPEN        0
  35. #define    DL_BACKGROUNDPEN    1
  36. #define    DL_FILLTEXTPEN        2
  37. #define    DL_FILLPEN        3
  38. #define    MAX_DL_PENS        4
  39.  
  40. /*****************************************************************************/
  41.  
  42. /* This structure is used to describe the days of the month */
  43. typedef struct tagDayLabel
  44. {
  45.     STRPTR         dl_Label;        /* Label */
  46.     WORD         dl_Pens[MAX_DL_PENS];    /* Pens */
  47.     struct TagItem    *dl_Attrs;        /* Additional attributes */
  48.     ULONG         dl_Flags;        /* Control flags */
  49.  
  50. } DayLabel, *DayLabelP;
  51.  
  52. /*****************************************************************************/
  53.  
  54. #define    DLF_SELECTED    (1L<<0)
  55. #define    DLF_DISABLED    (1L<<1)
  56.  
  57. /*****************************************************************************/
  58.  
  59. /* Additional attributes defined by the calendar.gadget class */
  60. #define CALENDAR_Dummy        (TAG_USER+0x04000000)
  61.  
  62. #define    CALENDAR_Day        (CALENDAR_Dummy+1)
  63.     /* (LONG) Day of the week */
  64.  
  65. #define    CALENDAR_ClockData    (CALENDAR_Dummy+2)
  66.     /* (struct ClockData *) defining clock data */
  67.  
  68. #define CALENDAR_FirstWeekday    (CALENDAR_Dummy+3)
  69.     /* (LONG) First day of the week.  Default is 0 for Sunday. */
  70.  
  71. #define    CALENDAR_Days        (CALENDAR_Dummy+4)
  72.     /* (STRPTR *) Text for days of the week */
  73.  
  74. #define    CALENDAR_Multiselect    (CALENDAR_Dummy+5)
  75.     /* (BOOL) Can more than one day be selected at a time.  Defaults
  76.      * to FALSE. */
  77.  
  78. #define    CALENDAR_Labels        (CALENDAR_Dummy+6)
  79.     /* (DayLabelP) Array of labels for the days of the month.  Optional,
  80.      * but if provided, must be an array of 31 entries. */
  81.  
  82. #define    CALENDAR_Label        (CALENDAR_Dummy+7)
  83.     /* (BOOL) Indicate whether there should be a label across the top
  84.      * showing the names of the days of the week.  Defaults to TRUE. */
  85.  
  86. /*****************************************************************************/
  87.  
  88. #endif /* GADGETS_CALENDAR_H */
  89.